package com.tour.service;

import java.util.List;

import com.tour.common.ServerResponse;
import com.tour.pojo.Order;

public interface IOrderService {
	
	/**
	 * 删除订单编号
	 * @param orderId
	 * @return
	 */
    ServerResponse deleteByPrimaryKey(Long orderId);

    /**
     * 增加订单
     * @param record
     * @return
     */    
    ServerResponse<Order> insertSelective(Order record);

    /**
     * 查找订单
     * @param orderId
     * @return
     */
    ServerResponse selectByUserId(Integer userId,Integer pageIndex,Integer pageSize);

    /**
     * 修改订单
     * @param record
     * @return
     */
    ServerResponse<Order> updateByPrimaryKeySelective(Order record);

    ServerResponse getOrderCount(Integer userId);

}
